package com.car.account.service;

import com.car.account.dto.addressDto.AddressByUserIdDto;
import com.car.account.entity.Address;
import com.baomidou.mybatisplus.extension.service.IService;
import com.car.account.param.addressParam.InsertAddressParam;
import com.car.account.param.addressParam.UpdateAddressParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 董旭
 * @since 2024-08-28
 */
public interface AddressService extends IService<Address> {

    List<AddressByUserIdDto> selectByUserId(Integer userId)throws Exception;

    void insertByUserId(InsertAddressParam param)throws Exception;

    void deleteById(Integer userId, Integer addressId)throws Exception;

    void updateAddressById(UpdateAddressParam param)throws Exception;

    AddressByUserIdDto selectByAddressId(Integer userId, Integer addressId)throws Exception;;
}
